<?php
global  $db;
$db->sqlcmd="select * from specialoffer order by a_count limit 5";
$result=$db->execute_reader();
 
?>

	<div class=" mo-blo mo-blo-red">
          	<div class="hd">
            	<h2 class="tit">推荐优惠<a href="" class="linkBeside">共<?=count($result)?>个</a></h2><s></s><i></i>
            </div>
            <div class="bd">
            	<ul class="ul-2c ul-2c-blue clearfix">
              <?php foreach ($result as $item){   ?>
	<li><a href="<?=ii_get_actual_route('specialoffer')?>/?type=detail&id=<?=$item[ 'aid']?>"><?=ii_left($item[ 'a_topic'], 12)?> </a><span><?=date('m-d', strtotime($item['a_time']))?></span></li>
	<?php }?>
              </ul>
            </div>
        </div>